package com.baizhi.test;

import com.baizhi.service.CmfzShiroService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Set;

public class ShiroServicetest extends AddParent{
    @Autowired
    private CmfzShiroService cmfzShiroService;

    @Test
    public void test1(){
        Set<String> zhangsan = cmfzShiroService.selectPermissionByUsername("zhangsan");
        for(String str:zhangsan){
            System.out.println("str = " + str);
        }
    }
    @Test
    public void test2(){
        Set<String> zhangsan = cmfzShiroService.selectRoleNameByUsername("zhangsan");
        for(String str:zhangsan){
            System.out.println("str = " + str);
        }
    }
}
